
import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;

private function initApp():void
{
	timer	=	new Timer(1000,1);
	timer.addEventListener(TimerEvent.TIMER,close);
}

[Bindable]
private var message:String;

private var _result:String;

private var timer:Timer;


public function set result(value:String):void
{
	_result	=	value;
	if(value != "")
	{
		message	=	value;
	}
	else
	{
		timer.start();
	}
}

public function get result():String
{
	return _result;
}

private function close(event:Event):void
{
	message	=	"";
}